package com.example.administrator.daggerdemo.model.network.response;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;

/**
* 常用字段响应类
* @author zhengjian
* create by 2016/6/4 13:42
*/
public class SimpleResponseInfo implements Serializable {
    @SerializedName("result")
  private   int result;  //请求结果
    @SerializedName("msg")
    private  String msg; //服务器消息
    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "SimpleResponseInfo{" +
                "result='" + result + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }

    public  static class  ResultCode{
        public static final int OK=1;
        public static final int FAIL=-1;
        public static final int UNKOWN_COMMAND=-99;
        public static final int UNKOWN_PARAMS=-98;
        public static final int UNKOWN_TOKEN=-97;
        public static final int INVALID_USERID=-96;
        public static final int INVALID_IMEI=-95;
        public static final int INCALID_BIND=-94;
        public static final int DEVICE_OFFLINE=-93;
        public static final int UNKOWN_MOBILE=-92;
        public static final int EMPTY=2;
    }
}
